package org.monster.context.core;

import org.monster.context.reader.tag.FilterTag;

/**
 * 过滤器模式
 */
public interface FilterPattern {

    /**
     * 装载 过滤器
     *
     * @param key       键
     * @param clazz     类
     * @param filterTag 拦截器标签
     * @throws InstantiationException 实例化异常
     * @throws IllegalAccessException 非法访问异常
     */
    void loadFilter(String key, Class<?> clazz, FilterTag filterTag)
            throws InstantiationException, IllegalAccessException;
}
